import fetch from 'common/src/utils/fetch';
import UTILS from "common/src/utils/utils";
/**
 * 培养方案开关设置(新增)
 * @param data
 */
export function insertMinorPower(data) {
    return fetch({
      url:
        '/api/cultureservice/MinorPower/insertMinorPower',
      method: 'post',
      data
    })
  }

  /**
 * 培养方案开关设置(查询)
 * @param data
 */
export function findMinorPower(data) {
    return fetch({
      url:
        '/api/cultureservice/MinorPower/findMinorPower',
      method: 'post',
      data
    })
  }

  /**
 * 培养方案开关设置(编辑)
 * @param data
 */
export function updateMinorPower(data) {
    return fetch({
      url:
        '/api/cultureservice/MinorPower/updateMinorPower',
      method: 'post',
      data
    })
  }

  /**
 * 培养方案开关设置(删除)
 * @param data
 */
export function deleteMinorPower(data) {
    return fetch({
      url:
        '/api/cultureservice/MinorPower/deleteMinorPower',
      method: 'post',
      data
    })
  }

  /**
   * 根据学院+辅修年级查询开关设置信息
   * @param {*} data 
   * @returns 
   */
  export function querySwitch(data) {
    return fetch({
      url:
        '/api/cultureservice/MinorPower/querySwitch',
      method: 'post',
      data
    })
  }